package com.coder.shop.rpc.api;

import java.util.List;

import com.coder.common.base.BaseService;
import com.coder.shop.dao.model.ShopGoodsType;
import com.coder.shop.dao.model.ShopGoodsTypeExample;

/**
 * ShopGoodsTypeService接口
 * @Author liuzhimin
 * @Date Created by liuzhimin on 2018/4/24.
 * @Description
 */
public interface ShopGoodsTypeService extends BaseService<ShopGoodsType, ShopGoodsTypeExample> {

	/**
	 * 查询所有商品分类（树形结构）
	 * @return
	 */
	public List<ShopGoodsType> findTreeList();
	
	/**
	 * 添加分类
	 * @param shopGoodsType
	 * @param specIds
	 * @return
	 */
	public int addGoodsType(ShopGoodsType shopGoodsType,Integer[] specIds);
	
	/**
	 * 修改分类
	 * @param shopGoodsType
	 * @param specIds
	 * @return
	 */
	public int updateGoodsType(ShopGoodsType shopGoodsType,Integer[] specIds);
	
}